Ext.define('Emp.view.Wester', {
	extend: 'Ext.tree.Panel',
	alias: 'widget.xwester',
	
	requires: [
		'Emp.store.Menu'
	],
	
	initComponent: function() {
		Ext.apply(this, {
			title: '导&nbsp;&nbsp;航',
			store: Ext.create('Emp.store.Menu'),
			width: 200,
			minWidth: 200,
			maxWidth: 200,
			split: true,
			collapsible: true,
			hideHeaders: true,
			useArrows: true,
			rootVisible: false,
			autoScroll: true,
			tools: [{
				type: 'refresh',
				scope: this,
				handler: function(event, toolEl, panel) {
					this.getStore().load();
				}
			}]
		});
		this.callParent();
	}
});